<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\index\IndexController;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::group(['prefix' => 'index'], function () {
    // 轮播图
    Route::get('bannerList', [IndexController::class, 'bannerList']);
    // 获取配置信息
    Route::get('config', [IndexController::class, 'config']);
    // 获取内容
    Route::get('content', [IndexController::class, 'content']);
    // 获取视频
    Route::get('video', [IndexController::class, 'video']);
});
